import  axios from  "../model/axios";

export  const  sentCode = (params:any)=>{
    return  axios({
        method:"get",
        url:"/target/captcha/sent",
        params
    })
}
export  const verify  = (params:any)=>{
    return axios({
        method:"get",
        url:"/target/captcha/verify",
        params
    })
}

export  const   qrkey = (params:any)=>{//获取key
    return  axios({
        method:"get",
        url:"/target/login/qr/key",
        params
    })
}
export  const qrcreate = (params:any)=>{//产生二维码
    return  axios({
        method:"get",
        url:"/target/login/qr/create",
        params
    })
}

export const qrcheck = (params:any)=>{
    return  axios({
        method:"get",
        url:"/target/login/qr/check",
        params
    })
}

export  const  test = ()=>{
    return  axios({
        method:"get",
        url:"/api/test",
        headers:{
            ifModifiedSince:new Date() //请求的开始时间
        }
    })
}

